home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / flilib.zip / AATYPES.H < prev    next >
C/C++ Source or Header  |  1990-02-20  |  1KB  |  48 lines

  1. /* aatypes.h  Copyright 1990 Dancing Flame, San Francisco */
  2.  
  3. #ifndef AATYPES_H
  4. #define AATYPES_H
  5.  
  6. #ifndef NULL
  7. #define NULL ((void *)0L)
  8. #endif /* NULL */
  9.  
  10. void *aa_malloc(unsigned);    /* heap allocator */
  11. void aa_free(void *);        /* heap free'er */
  12.  
  13. #ifndef UBYTE
  14. #define UBYTE unsigned char
  15. #endif /* UBYTE */
  16. #ifndef BYTE
  17. #define BYTE signed char
  18. #endif /* BYTE */
  19. #ifndef SHORT
  20. #define SHORT short
  21. #endif /* SHORT */
  22. #ifndef SHORT
  23. #define SHORT short
  24. #endif /* SHORT */
  25. #ifndef USHORT 
  26. #define USHORT unsigned short
  27. #endif /* USHORT */
  28. #ifndef LONG
  29. #define LONG long
  30. #endif /* LONG */
  31. #ifndef ULONG
  32. #define ULONG unsigned long
  33. #endif /* ULONG */
  34.  
  35. typedef void (*AAvec)();    /* pointer to a void-valued function */
  36. typedef int (*AAivec)();    /* pointer to an integer valued function */
  37.  
  38. typedef int Boolean;    /* functions explicitly returning 0 or 1 */
  39. #define TRUE 1
  40. #define FALSE 0
  41. #define Success 0        /* for Errval returns */
  42.  
  43. /* useful macro to count elements in an array */
  44. #define Array_els(arr) (sizeof(arr)/sizeof(arr[0]))
  45.  
  46.  
  47. #endif /* AATYPES_H */
  48.